package com.qf.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qf.entity.TlCity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

//封装车次中间站详情
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CenterVo {
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date carStarttime;//发车时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date carEndtime;//到达时间

    private List<TlCity> citys;//途径城市
}
